package com.ktjy.ruoyidata.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料产品对象 my_item
 * 
 * @author t382
 * @date 2025-05-07
 */
public class MyItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品物料ID */
    private Long itemId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String itemCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String itemName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 单位 */
    @Excel(name = "单位")
    private String unitOfMeasure;

    /** 物料/产品 */
    @Excel(name = "物料/产品")
    private String itemOrProduct;

    /** 物料类型ID */
    private Long itemTypeId;

    /** 物料类型编码 */
    private String itemTypeCode;

    /** 物料类型名称 */
    @Excel(name = "物料类型名称")
    private String itemTypeName;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String enableFlag;

    /** 是否设置安全库存 */
    @Excel(name = "是否设置安全库存")
    private String safeStockFlag;

    /** 最低库存量 */
    private BigDecimal minStock;

    /** 最大库存量 */
    private BigDecimal maxStock;

    /** 高价值物资 */
    private String highValue;

    /** 是否批次管理 */
    private String batchFlag;

    private List<Long> itemTypeIds; // 物料分类ID

    /** 产品BOM关系信息 */
    private List<MdProductBom> mdProductBomList;

    public List<MdProductBom> getMdProductBomList() {
        return mdProductBomList;
    }

    public void setMdProductBomList(List<MdProductBom> mdProductBomList) {
        this.mdProductBomList = mdProductBomList;
    }

    public List<Long> getItemTypeIds() {
        return itemTypeIds;
    }

    public void setItemTypeIds(List<Long> itemTypeIds) {
        this.itemTypeIds = itemTypeIds;
    }

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }

    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setUnitOfMeasure(String unitOfMeasure) 
    {
        this.unitOfMeasure = unitOfMeasure;
    }

    public String getUnitOfMeasure() 
    {
        return unitOfMeasure;
    }

    public void setItemOrProduct(String itemOrProduct) 
    {
        this.itemOrProduct = itemOrProduct;
    }

    public String getItemOrProduct() 
    {
        return itemOrProduct;
    }

    public void setItemTypeId(Long itemTypeId) 
    {
        this.itemTypeId = itemTypeId;
    }

    public Long getItemTypeId() 
    {
        return itemTypeId;
    }

    public void setItemTypeCode(String itemTypeCode) 
    {
        this.itemTypeCode = itemTypeCode;
    }

    public String getItemTypeCode() 
    {
        return itemTypeCode;
    }

    public void setItemTypeName(String itemTypeName) 
    {
        this.itemTypeName = itemTypeName;
    }

    public String getItemTypeName() 
    {
        return itemTypeName;
    }

    public void setEnableFlag(String enableFlag) 
    {
        this.enableFlag = enableFlag;
    }

    public String getEnableFlag() 
    {
        return enableFlag;
    }

    public void setSafeStockFlag(String safeStockFlag) 
    {
        this.safeStockFlag = safeStockFlag;
    }

    public String getSafeStockFlag() 
    {
        return safeStockFlag;
    }

    public void setMinStock(BigDecimal minStock) 
    {
        this.minStock = minStock;
    }

    public BigDecimal getMinStock() 
    {
        return minStock;
    }

    public void setMaxStock(BigDecimal maxStock) 
    {
        this.maxStock = maxStock;
    }

    public BigDecimal getMaxStock() 
    {
        return maxStock;
    }

    public void setHighValue(String highValue) 
    {
        this.highValue = highValue;
    }

    public String getHighValue() 
    {
        return highValue;
    }

    public void setBatchFlag(String batchFlag) 
    {
        this.batchFlag = batchFlag;
    }

    public String getBatchFlag() 
    {
        return batchFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("itemCode", getItemCode())
            .append("itemName", getItemName())
            .append("specification", getSpecification())
            .append("unitOfMeasure", getUnitOfMeasure())
            .append("itemOrProduct", getItemOrProduct())
            .append("itemTypeId", getItemTypeId())
            .append("itemTypeCode", getItemTypeCode())
            .append("itemTypeName", getItemTypeName())
            .append("enableFlag", getEnableFlag())
            .append("safeStockFlag", getSafeStockFlag())
            .append("minStock", getMinStock())
            .append("maxStock", getMaxStock())
            .append("highValue", getHighValue())
            .append("batchFlag", getBatchFlag())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
